﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using cbmobile.BLC;
using cbmobile.DAC;

namespace cbmobile
{
    public partial class UserPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void linkSearch_Click(object sender, EventArgs e)
        {
            int n = Convert.ToInt32(drlSearch.SelectedValue);
            switch (n)
            {
                case 1:
                    Response.Redirect("/TImKiem.aspx?muid=TimKiemHSX&TenHSX=" + txtSearch.Text);
                    break;
                case 4:
                    Response.Redirect("/TImKiem.aspx?muid=TimKiemSP&TenSP=" + txtSearch.Text);
                    break;
                case 2:
                    Response.Redirect("/TImKiem.aspx?muid=TimKiemPK&TenPK=" + txtSearch.Text);
                    break;
                case 3:
                    Response.Redirect("/TImKiem.aspx?muid=TimKiemLK&TenLK=" + txtSearch.Text);
                    break;
            }
        }

        
    }
}